package com.feigncloud.order.config;

import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FeignConfig {


    /**
     * 配置openFeign的日志级别
     * 需要在yml文件配置哪个service需要开启openFeign的日志打印
     * 如：com.feigncloud.order.service.PaymentFeignService
     * @return
     */
    @Bean
    Logger.Level openFeignLevel(){
        return Logger.Level.FULL;  //full为最全面的打印
    }

}
